﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JunYu.CodeGeneration.Models.Model
{
    [Table("T_DBConnectionInfo")]
    public class DBConnectionInfo:EntityBase
    {
        /// <summary>
        /// 连接名
        /// </summary>
        [Required,StringLength(50)]
        public string ConnecttiomName { get; set; }
        /// <summary>
        /// 数据库类型
        /// </summary>
        public int DbType { get; set; } = 0; // 0:MSSQL  1:Mysql  ...
        /// <summary>
        /// 主机号
        /// </summary>
        [StringLength(25)]
        public string Host { get; set; }
        /// <summary>
        /// 端口号
        /// </summary>
        [StringLength(10)]
        public string Post { get; set; }
        /// <summary>
        /// 数据库名
        /// </summary>
        [StringLength(50)]
        public string DbName { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(50)]
        public string PassWord { get; set; }

    }
}
